package main

import (
	"fmt"
	"time"
)

func main() {
	now := time.Now() //2025-11-13 22:49:02.093922 +0800 CST m=+0.000147016
	fmt.Println(now)

	//2025-11-13 22:49:02
	year := now.Year()
	month := now.Month()
	day := now.Day()

	hour := now.Hour()
	minute := now.Minute()
	second := now.Second()

	fmt.Printf("%d-%d-%d %d:%d:%d\n", year, month, day, hour, minute, second)
	fmt.Printf("%d-%02d-%02d %02d:%02d:%02d\n", year, month, day, hour, minute, second)
}
